package com.rdc.example.service;

import com.rdc.example.bean.PageBean;
import com.rdc.example.bean.Result;
import com.rdc.example.bean.dto.ColumnDTO;

public interface ColumnService {
    Result insertColumn(ColumnDTO columnDTO) throws Exception;

    Result deleteColumn(Integer columnId) throws Exception;

    Result deleteColumn(Integer userId, Integer columnId) throws Exception;

    Result inColumn(Integer columnId, Integer songId) throws Exception;

    Result outColumn(Integer songId) throws Exception;

    Result updateColumn(ColumnDTO columnDTO) throws Exception;

    PageBean<ColumnDTO> getColumnListByUserId(Integer userId, Integer currentPage, Integer pageSize) throws Exception;

    PageBean<ColumnDTO> searchColumnsByTitle(String keyword, Integer currentPage, Integer pageSize) throws Exception;
}
